import 'package:flutter/material.dart';

// 标准 MaterialApp 与 AppBar
void main() {
  runApp(
    const MaterialApp(title: "Tu App", home: TutorialHome()),
  );
}

class TutorialHome extends StatelessWidget {
  const TutorialHome({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: const IconButton(onPressed: null, icon: Icon(Icons.menu)),
        title: const Text('Example title'),
      ),
      body: const Center(
        child: Text("hello world"),
      ),
      floatingActionButton: const FloatingActionButton(
        onPressed: null,
        child: Icon(Icons.add),
      ),
    );
  }
}
